package com.yunxin.core.application.command.page;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zero°
 * @since 2023-05-27
 */
@Data
@Schema(description = "更新页面对象")
public class UpdatePageCommand implements Serializable {
    /**
     * id
     */
    @Schema(description = "id")
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 页面名称
     */
    @Schema(description = "页面名称")
    @NotBlank(message = "页面名称不能为空")
    private String pageName;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 更新人
     */
    @Schema(hidden = true)
    private String editor;
}
